<template>
    <h1>子组件</h1>

    <!-- <MyButton> 的模板 -->
    <button class="large">
        <slot />
    </button>
</template>

<script setup>
defineOptions({
    inheritAttrs: true
});
</script>
<style>
.large {
    font-size: 24px;
}
</style>